package com.workerhelping.service.impl;

import com.workerhelping.dao.RecordStuckReasonIdRelationDao;
import com.workerhelping.service.RecordStuckReasonIdRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecordStuckReasonIdRelationServiceImpl implements RecordStuckReasonIdRelationService {

    @Autowired
    private RecordStuckReasonIdRelationDao recordStuckReasonIdRelationDao;
    @Override
    public void setRecordStuckReasonsRelation(List<Integer> stuckReasonIds, Integer recordId) {
        recordStuckReasonIdRelationDao.setRecordStuckReasonsRelation(stuckReasonIds, recordId);
    }

    @Override
    public void deleteRecordStuckReasonsRelation(Integer recordId) {
        recordStuckReasonIdRelationDao.deleteRecordStuckReasonsRelation(recordId);
    }
}
